"""
@author: yinjx
@file: conn_mysql.py
@time: 2023/8/3 19:33
"""
import pymysql
from config.settings import DB_PASS, DB_PORT, DB_SCHEM, DB_USER, DB_HOST

def conn_mysql():
    conn = pymysql.connect(
        host = DB_HOST,
        port = DB_PORT,
        user = DB_USER,
        password = DB_PASS,
        db = DB_SCHEM
    )

    return conn